/**
 * @Author: YCKOKO
 * @Date: 2023-05-16
 * @Time:09:12
 * @Description:
 */

import java.util.*;
public class demo2 {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String s = scan.nextLine();
        String[] nums = s.split(" ");
        int a = Integer.parseInt(nums[0]);
        int b = Integer.parseInt(nums[1]);
        int min = Math.max(a,b);
        for(int i = min;;i++){
            if(i%a==0 && i%b==0){
                min = i;
                break;
            }
        }
        System.out.println(min);
    }
}
